# @Time:2023/4/25 9:54
# -*- coding: UTF-8 -*-
from django.db import models
class BaseModel(models.Model):
    """抽象的模型基类，定义一些公共的字段"""
    create_time=models.DateTimeField(auto_now_add=True)
    update_time=models.DateTimeField(auto_now=True)
    is_delete=models.BooleanField(default=False)
    class Meta:
        abstract=True #执行迁移不会生成对应的表
        verbose_name_plural='公共字段'
        db_table='BaseTable'